FROM 54.223.110.70/java/alpine-oraclejdk8:slim2
VOLUME /tmp

ENV SN=sms-service
ENV MALLOC_ARENA_MAX=1
ENV JAVA_OPTS="-server -Xmx2g -Xms2g -Xmn512m -Xss256k -XX:MaxMetaspaceSize=128m"

ADD ${SN}.jar ${SN}.jar
RUN sh -c 'touch /${SN}.jar'

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT java ${JAVA_OPTS} -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -jar /${SN}.jar



